package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EventHandlingExample.E_COMPANY_ID;
import static org.jsola.hr.example.EventHandlingExample.E_COMPANY_NAME;
import static org.jsola.hr.example.EventHandlingExample.E_EVENT_ANNEX;
import static org.jsola.hr.example.EventHandlingExample.E_EVENT_CONTENT;
import static org.jsola.hr.example.EventHandlingExample.E_EVENT_LABEL;
import static org.jsola.hr.example.EventHandlingExample.E_EVENT_TITLE;
import static org.jsola.hr.example.EventHandlingExample.E_MONTH;
import static org.jsola.hr.example.EventHandlingExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EventHandlingExample.M_COMPANY_NAME_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_COMPANY_NAME_NOT_NULL;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_ANNEX_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_CONTENT_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_CONTENT_NOT_NULL;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_LABEL_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_TITLE_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_EVENT_TITLE_NOT_NULL;
import static org.jsola.hr.example.EventHandlingExample.M_MONTH_MAX;
import static org.jsola.hr.example.EventHandlingExample.M_MONTH_NOT_NULL;
import static org.jsola.hr.example.EventHandlingExample.N_COMPANY_ID;
import static org.jsola.hr.example.EventHandlingExample.N_COMPANY_NAME;
import static org.jsola.hr.example.EventHandlingExample.N_EVENT_ANNEX;
import static org.jsola.hr.example.EventHandlingExample.N_EVENT_CONTENT;
import static org.jsola.hr.example.EventHandlingExample.N_EVENT_LABEL;
import static org.jsola.hr.example.EventHandlingExample.N_EVENT_TITLE;
import static org.jsola.hr.example.EventHandlingExample.N_MONTH;

/**
 * 事件处理
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【事件处理】的参数")
@Data
public class EventHandlingAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_COMPANY_NAME, example = E_COMPANY_NAME, required = true)
    @NotNull(message = M_COMPANY_NAME_NOT_NULL)
    @Length(max = 200, message = M_COMPANY_NAME_MAX)
    private String companyName;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH, required = true)
    @NotNull(message = M_MONTH_NOT_NULL)
    @Length(max = 8, message = M_MONTH_MAX)
    private String month;

    @ApiModelProperty(notes = N_EVENT_TITLE, example = E_EVENT_TITLE, required = true)
    @NotNull(message = M_EVENT_TITLE_NOT_NULL)
    @Length(max = 30, message = M_EVENT_TITLE_MAX)
    private String eventTitle;

    @ApiModelProperty(notes = N_EVENT_LABEL, example = E_EVENT_LABEL)
    @Length(max = 50, message = M_EVENT_LABEL_MAX)
    private String eventLabel;

    @ApiModelProperty(notes = N_EVENT_CONTENT, example = E_EVENT_CONTENT, required = true)
    @NotNull(message = M_EVENT_CONTENT_NOT_NULL)
    @Length(max = 2147483647, message = M_EVENT_CONTENT_MAX)
    private String eventContent;

    @ApiModelProperty(notes = N_EVENT_ANNEX, example = E_EVENT_ANNEX)
    @Length(max = 2000, message = M_EVENT_ANNEX_MAX)
    private String eventAnnex;


}

